package org.wakeful.query;

/**
 *	Some useful functions and other things that only belongs to PostgreSQL Database.
 * @author atila
 */
public interface PostgreSQLQuery {

	/**
	 * Returns the timestamp from database.
	 */
	public static final String CURRENT_TIMESTAMP = "current_timestamp";
	/**
	 * The to_timestamp function passing two String parameters, the timestamp and the mask
	 */
	public static final String TO_TIMESTAMP = "to_timestamp(?, ?)";
	/**
	 * The to_timestamp function passing one String parameter, the timestamp.
	 * Obs.: the default timestamp is <i>YYYY/MM/DD HH24:MI:SS</i>
	 */
	public static final String TO_TIMESTAMP_DEFAULT = "to_timestamp(?, 'YYYY/MM/DD HH24:MI:SS')";
}
